/*
 *@description:通用信息接口
 *@author: liuchenguang
 *@date: 2022-02-28
 *@version: V1.0.0
 */

import request from '@tapui/utils/request'
// 产品信息
export function queryProductInfo(params) {
  return request({
    url: '/mms/productConfig/queryTreeList',
    method: 'get',
    params
  })
}

// 部门信息
export function queryDeptInfo(params) {
  return request({
    url: '/itr/technicalService/queryDeptInfo',
    method: 'get',
    params
  })
}

export function queryDeptCommonCode() {
  return request({
    url: '/itr/technicalService/getCurrentUserDeptCommonCode',
    method: 'get'
  })
}

// 省区信息
export function queryProvinceInfo(params) {
  return request({
    url: process.env.BSP_API + '/mms/provinceCityMatchinfo/queryTreeList',
    method: 'get',
    params
  })
}

// 查询当前用户是否为省区用户
export function queryProvinceUser(params) {
  return request({
    url: '/itr/technicalService/queryProvinceUser',
    method: 'get',
    params
  })
}
